home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / Unsupported Libraries / Error_Lib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-21  |  1.5 KB  |  64 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        Error_Lib.h                                                 **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:                                                               **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **     Copyright (C) 1992, 1993 Apple Computer, Inc.  All rights reserved.     **
  10.  **                                                                          **
  11.  **                                                                          **
  12.  *****************************************************************************/
  13. #ifndef Error_Lib_h
  14. #define Error_Lib_h
  15.  
  16. #if PRAGMA_ONCE
  17.     #pragma once
  18. #endif
  19.  
  20. #include "QD3DErrors.h"
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif    /* __cplusplus */
  25.  
  26. /******************************************************************************
  27.  **                                                                             **
  28.  **                             Global (ugh!)                                     **
  29.  **                                                                             **
  30.  *****************************************************************************/
  31.  
  32. extern FILE *gErrorFile;
  33.  
  34.  
  35. /******************************************************************************
  36.  **                                                                             **
  37.  **                             Routines                                         **
  38.  **                                                                             **
  39.  *****************************************************************************/
  40.  
  41. void InstallDefaultErrorHandler(
  42.     void);
  43.     
  44. void InstallDefaultWarningHandler(
  45.     void);
  46.     
  47. void InstallDefaultNoticeHandler(
  48.     void);
  49.     
  50. char *ErrorString(
  51.     TQ3Error error);
  52.     
  53. char *WarningString(
  54.     TQ3Warning warning);
  55.     
  56. static char *NoticeString(
  57.     TQ3Notice notice);
  58.     
  59. #ifdef __cplusplus
  60. }
  61. #endif    /* __cplusplus */
  62.  
  63. #endif /* Error_Lib_h */
  64.